<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理员列表</title>
    <link href="css/examples-offline.css" rel="stylesheet">
</head>
<body>
<input type="button" value="创建新管理员" onclick="window.location.href='?act=user.create_show'"/>
<input type="button" value="打印" onclick="print_content();"/>
<table class="common" id="layer_main">
<tr>
<th>管理员编号</th>
<th>用户名</th>
<th>昵称</th>
<th>管理员姓名</th>
<th>权限</th>
<th>注册时间</th>
<th>最后登录</th>
<th>分配权限</th>
</tr>
{foreach from=$user_list item=user}
<tr>
<td>{$user.administor_id}</td>
<td><a href="?act=user.info_show&user_name={$user.user_name}">{$user.user_name}</a></td>
<td>{$user.nick_name}</td>
<td>{$user.real_name}</td>
<td>{$user.permission}</td>
<td>{$user.register_time}</td>
<td>{$user.last_login_time}</td>
<td><a href="?act=permission.alloc_show&user_name={$user.user_name}">分配</a></td>
</tr>
{/foreach}
</table>
<script>
function print_content()
{
	//window.Layer1.style.display ="none";    //2?Dèòa
	window.layer_main.style.top ="10px";//2?Dèòa

	window.print();//2?Dèòa
	//window.Layer1.style.display ="";//2?Dèòa
	window.layer_main.style.top ="66px";//2?Dèòa

	//window.Layer1.style.display ="";
	window.layer_main.style.display ="";//2?Dèòa
}
</script>
</body>
</html>